import request from "@/request/index.js"
const secondApi = {
	/**
	 * 添加广告积分
	 */
	createUserPoint: () => {
		return request("/biz/second/createUserPoint", {
			method: "post",
		})
	},
	/**
	 * 商品列表
	 */
	getProductPage: (data) => {
		return request("/biz/second/getProductPage", {
			method: "get",
			data
		})
	},
	/**
	 * 商品详情
	 */
	getProduct: (data) => {
		return request("/biz/second/getProduct", {
			method: "get",
			data
		})
	},
	/**
	 * 加入购物车
	 */
	createUserShopCard: (data) => {
		return request("/biz/second/createUserShopCard", {
			method: "get",
			data
		})
	},
	/**
	 * 购物车列表
	 */
	getShopCardList: (data) => {
		return request("/biz/second/getShopCardList", {
			method: "get",
			data
		})
	},
	/**
	 * 购物车列表
	 */
	deleteUserShopCard: (ids) => {
		return request("/biz/second/deleteUserShopCard?ids=" + ids, {
			method: "delete",
		})
	},
	/**
	 * 账号分页
	 */
	getUserGamePage: (data) => {
		return request("/biz/second/getUserGamePage", {
			method: "get",
			data
		})
	},
	/**
	 * 账号创建
	 */
	createUserGame: (data) => {
		return request("/biz/second/createUserGame", {
			method: "post",
			data
		})
	},
	/**
	 * 账号更新
	 */
	updateUserGame: (data) => {
		return request("/biz/second/updateUserGame", {
			method: "put",
			data
		})
	},
	/**
	 * 账号获取
	 */
	getUserGame: (id) => {
		return request("/biz/second/getUserGame?id=" + id, {
			method: "get",
		})
	},
	/**
	 * 账号删除
	 */
	deleteUserGame: (id) => {
		return request("/biz/second/deleteUserGame?id=" + id, {
			method: "delete",
		})
	},
	/**
	 * 积分记录
	 */
	getUserPointPage: (data) => {
		return request("/biz/second/getUserPointPage", {
			method: "get",
			data
		})
	},
	/**
	 * 创建订单
	 */
	createOrder: (data) => {
		return request("/biz/second/createOrder", {
			method: "post",
			data
		})
	},
	/**
	 * 订单列表
	 */
	getOrderPage: (data) => {
		return request("/biz/second/getOrderPage", {
			method: "get",
			data
		})
	},
	/**
	 * 订单列表
	 */
	updateGameNo: (data) => {
		return request("/biz/second/updateGameNo", {
			method: "get",
			data
		})
	},
	/**
	 * 获得抽奖奖品
	 */
	getGiftList: (data) => {
		return request("/biz/second/getGiftList", {
			method: "get",
			data
		})
	},
	/**
	 * 用户签到
	 */
	sign: (data) => {
		return request("/biz/second/sign", {
			method: "get",
		})
	},
	/**
	 * 签到记录
	 */
	getUserSign: (data) => {
		return request("/biz/second/getUserSign", {
			method: "get",
		})
	},
	/**
	 * 签到奖励
	 */
	getSignGiftList: (data) => {
		return request("/biz/second/getSignGiftList", {
			method: "get",
		})
	},
	/**
	 * 抽奖记录分页
	 */
	getUserLotteryRecordPage: (data) => {
		return request("/biz/second/getUserLotteryRecordPage", {
			method: "get",
			data
		})
	},
	/**
	 * 用户抽奖
	 */
	createLotteryRecord: (data) => {
		return request("/biz/second/createLotteryRecord", {
			method: "post",
			data
		})
	},
}


export default secondApi;